package cn.iocoder.yudao.module.cont.enums.base;

import cn.iocoder.yudao.framework.common.core.IntArrayValuable;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

import java.util.Arrays;

/**
 * Cont的合同类型
 *
 * @author haiyun
 */
@RequiredArgsConstructor
@Getter
public enum ContHtztEnum implements IntArrayValuable {
    HTZT_ZZX(0, "在执行"),
    HTZT_XQZ(10, "新签中"),
    HTZT_QQZ(20, "续签中"),
    HTZT_QSWC(30, "签署完成"),
    HTZT_GQ(40, "过期"),
    FKFS_FQ(50, "废弃");


    private final Integer status;
    private final String name;

    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(ContHtztEnum::getStatus).toArray();

    @Override
    public int[] array() {
        return ARRAYS;
    }

}
